<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="operate.*,operate.vo.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>表单列表</title>
		 <link rel="StyleSheet" href="<%=basePath %>form/css/list.css" type="text/css" />
	</head>
	<body>
	<div class="formList">
		<table width="100%">
			<%
				List<Form> forms = FormOperate.getAllForm();
				for (Form form : forms) {
			%>
			<tr>
				<td>
					<a href="<%=basePath%>form/formAttr_list.jsp?id=<%=form.getCid()%>"
						target="formAttr_list"><%=form.getName()%></a>
				</td>
				<td align="right">删除|修改</td>
			</tr>
			<%
			}
			%>
		</table>
		</div>
		<form action="<%=basePath%>servlet/FormServlet?method=addForm"
			method="post">
			<input type="text" name="name">
			<input type="submit" value="添加">
		</form>
	</body>
</html>
